Adding a very loose typing to the debug library and checking the name of interfaces against primitive types