Allow serialization of nodes at top level beyond doc/element/fragment; correct function name