remove unsupported use of chained type parameters
fix a memory bug in codegen of getfield on a 0-size struct
Merge branch 'upstream-master'