Make sure reference arrays are loaded to avoid index problems.
Check wether arrays already refined using .shape[0] instead of .size
	modified:   hdf5.py