Only mark the end of dynamic members if the object is dynamic.
Add some more AmfObject tests