Improved reopening of file object

if the HDF5 file has been closed, it is now reopened in the __enter__
function, rather than through a call to node.nxfile.