fix Issue 11010 - typeid doesn't work on a member of an instance

To distinguish the typeid context, add `bool intypeid` parameter on Type::resolve().
Merge pull request #2587 from 9rnsr/fix11010

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