Use H5F_UNLIMITED only if necessary

Fix for #133