autocompile: fix missing reference to self.compile_and_register