Currently the generic encoding turns records into simple sequences of fields. Would it make sense to change the encoding for records or provide an alternative encoding that will store records as maps, similar to what `aeson` does?