OK, I've found out what the problem was: the new module was not, for some reason, deployed to the modules directory, so the program was trying to run the old version. I still have a question, however: should the error message not have been something along the lines of "Cannot find function xyz" instead of the cryptic message that "the module is already loaded."?