fix a couple immutable struct codegen oopsies