BUG: Fix loading npz files >2GB on 64bit systems

This fixes bug #2922 and as an additional bonus improves IO performance.