Fix handling of requesting data with all indices.

This was causing a traceback, now works and fixed using squeeze.
Adjust requests that go beyond the last index.

Numpy accepts slices that go past the last index, so we should try to
handle these.