Improved serialization service and added some primitive and array serializers.
cleanup.