Several bugfixes dealing with attribute fetching and
resetting a hNCDF after close.
Cleaned up some code that was not necessary.