fix a memory bug in codegen of getfield on a 0-size struct