driver: force type inference when loading inliner templates, and use it in runtime system code