Fixed memory leak

Keys where left with empty objects instead of being entirely cleaned up,
when wildcards are enabled. The examples in #65 results in a garbage
collected tree with this patch.

Fixes #65