ENH faster safe_indexing for common case
Merge pull request #3539 from jnothman/fast_indexing

[MRG] ENH faster safe_indexing for common case