fix Issue 11245 - Can't access length of static arrays from within classes