Fix buggy code generation of nested instance field assignments and wrote a test for it.