Dry-coded `Serializers.encodeMap`.