AMF - added support for writing of Vector<> and ByteArray