fix Issue 9538 - Regression (2.062): Can't use typeid on .ptr of static array
fundamental fix for resolveHelper