Reworked the automatic serializer architecture.