Defined simple serializers for leaf fields and key tuples