The structures in memh5 create cyclic references which seems to prevent garbage collection in some cases. Replacing some with weakrefs.
Merge pull request #13 from radiocosmology/memh5-cyclic-fix

Remove cyclic references in memh5