Fix bug 10579 CTFE ICE with TypeInfo

Applies to any attempt to call a virtual function on a static
variable.
Bug 10579 CTFE ICE second case

ICE when resolving a virtual function call in CTFE. Same ICE
as bug 10579.
Merge pull request #2325 from donc/ice_ctfe_10579

10579 Regression CTFE ICE with TypeInfo