Add initial AmfDictionary implementation.

This is largely untested so far, and the API might change in the future.