Implemented basic AMF3 encoder.