Add cast-to-pointer utility method to AmfItemPtr.
Add AmfObject deserialization.

Refs #1.