Fix bug where template types were added to the namespace of the loaded MySQL module instead of in wpl_program, where they should have been. This caused problems in the web server module because the namespacse of loadable modules are in common for all P* files.