CommLibiOS: fixed referencebale type writers (AMF serialization)