Start refactoring record code to use pointers everywhere
Fix crash in cgen_array_ref
Fix crash in cgen_new
Remove some code duplication in cgen_func_body
Fix crash when returning record
Fix returning garbage data with record result of function
Fix crash comparing arrays of records
Fix possible use of uninitialised data in record comparison