fixed bug where the id of the child wasn't being pushed onto the object graph; added templated conditional static typing so that we can correctly dispatch on types derived from Serializable from a container's serializeType(...)