move serialize from concrete Binding subclasses into Serializer as it is a generic thing that must not be done in bindings.