Generalized HDF5 tree access