Refactor serializers.

This splits clearly serializers from object that those from collections.