Change MapPointer explicit length parameter from int to long

This change makes Map functions consistent with Data/SubData funtions. In practice it is pointless because NIO buffers do not support long indexing.
Merge remote-tracking branch 'upstream/master' into travis-osx