Allow inferred records to be retyped when flattening