Add missing definition for h5t_commit()
Don't close datasets, groups, and attributes from closed files

Fixes #36. It doesn't seem like HDF5Datatype and HDF5Dataspace need to
carry around the file, since their IDs are always unique (fingers
crossed). Also adds a test that verifies this.