Fix bugs in generated code for part_select and part_set so that llc doesn't