Fix UnknownMember being generated when working with anonymous types