Issue 9982 case(b) wrong code for dotvar pointer assign

The existing code was complicated and just plain wrong.
Fix issue 9982 ICE on CTFE for pointer dereference

CTFE assignments can resolve to a StructLiteral inplace assign.
Merge pull request #2498 from donc/ctfe9982dotvar

9982 ICE or wrong code for CTFE pointer dereference