Change the IR for record types. Fixes issue 1228
R=johnlenz