* perf(optimizer): inline count for known array variables * fix(optimizer): exclude global wrappers from direct array count