_getitem__ of generic types with a fallback to
    original function for non-hashable arguments.
    c