Add support for more serializers in AbstractComposite.