Added test for remove and cleaned a bit up.
I suspect there are quite some memory leaks around. Especially if the user
uses the assignment operator.
Perhaps we should create a routine for dictionaries as well?