Use 64-bit numbers.
Don't segfault on unknown function.
Recursive drainParent().
Return removed elements as well.