Only serialize records, dispatch properly on record type.