runtime: Fix initialization of static instances