[Refactoring] Separate `Type::genTypeInfo` from `Type::getTypeInfo`

Reduce redundant Expression generation in glue layer
Add semanticTypeInfo
fix Issue 12144 - Unresolved xopEquals when referenced by dynamic array constructor
Merge pull request #3256 from 9rnsr/fix12144

[REG2.064] Issue 12144 - Unresolved xopEquals when referenced by dynamic array constructor