Simplified serializer trait