fix Issue 10373 - cannot resolve forward reference
improve hash speed
convert template lookup to hash table
use unsigned value for interface offset
speed up based on gprof data
Merge pull request #2192 from 9rnsr/fix10373

[REG2.063] Issue 10373 - cannot resolve forward reference
Merge pull request #2252 from dawgfoto/fix10457

use unsigned value for interface offset
Merge pull request #2239 from WalterBright/hash_instance

convert template lookup from array to hash table
Merge pull request #2248 from WalterBright/tweak-hash

tweak rehash threshhold
Merge pull request #2247 from WalterBright/speed_up_search

speed up based on gprof data