[REG2.063] Issue 11010 - typeid doesn't work on a member of an instance

http://d.puremagic.com/issues/show_bug.cgi?id=11010

To distinguish the typeid context, add `bool intypeid` parameter on `Type::resolve()`.

Unfortunately, the dirty hack is necessary in order to avoid existing code breaking.