Fix a bug in tuple-record handling.  Thanks to Saumya Debray for the report.