Review Feedback: use GHashTable more efficiently.
Review Feedback: Unconditional chain up finalize and dispose.
Review Feedback: Fix memory leaks and improve memory management.