Fix issue 9938 ICE using global interface variable in CTFE

Can't just use getValue() to get the value of the 'this', it might
be a global.
Merge pull request #1906 from donc/ctfe9938classglobal

9938 ICE using global interface variable in CTFE