Repair breakage caused by pull 2279

Pull request 2279 was broken, CTFE must be called AFTER resolving properties.
https://github.com/D-Programming-Language/dmd/pull/2279

The bug is exposed when trying to use CTFE to do const-folding.