added test for the issue
use randn instead of ones
added test for fromfile/tofile with large arrays
a bit more meaningful docstring for the test added in previous comit
attempt at fixing the bug