Changed item==slice(None) tests to isinstance(item, slice) and
item==slice(None) so that it works for item an ndarray