Fix unit tests after earlier change to input_from_file
Fix crash with records containing arrays