Expose serializeElement func