(Bug 60284) Fix record data type issue in #set/#subobject

- RecordDataTypeRegressionTest is added before making changes to the core in order to make a false/positive on a provided solution.

Relates to #140