squeeze->reshape (Julia deprecation)
Store number of #refs# in file object

Under certain circumstances, the procedure used to avoid name clashes
for objects in /#refs# wasn't working. This switches to storing
"state" in the file object itself, so that there is always one place
to go to get the next object name.