Fix bug 1982 [CTFE] Problems with compile-time null

Test case only. This was fixed by doing const-folding in CTFE.
Fix issue 7988 allow CTFE return values in compile-time exprs

Test case only. This bug was fixed by doing constfolding in CTFE.
Fix issue 8253 ICE: calling of member function of non-CTFE class variable

Test case only, already fixed by doing constfolding in CTFE.
Fix issue 8285 Issue with slice returned from CTFE function

Test case only; fixed by using CTFE to do constfolding.
Merge pull request #2339 from donc/fourCTFEtestcases

Test cases for bugs 1982, 7988, 8253, and 8285.