Add simpler ctors for AmfObject
Only encode dynamic object members if the object is dynamic