Serializes and deserializes all input elements in a container element.