parse amf into proper value objects

i'm probably doing it completely wrong