Toplevel: generate stubs for unbound primitives instead of failing immediately