Make binding serialization serialize external objects

Changed getObjectLabel to add the object as a reference to the serialization.