Fix bug where module identifier sometimes collides with runtime function

It popped up when someone made a func called "error", and the module
was named "halide_error", which collided with the runtime function of
the same name.