Compiler: Static type initializer is now generated for external code only if not in test mode.