Fixed #175: invalid code generated when using with/yield with structs