optimized ArrayFile.setArrayLength using remap