Add remaining AnyMap features.

From shamelessly reading the `AnyMap` source, I noticed we were missing a few things.

Credit: @chris-morgan