AMF - Fixed bug with writing of typed Vector<>s