parse amf0 basic types.