4533: use "extend" when calling module methods from class methods. refs #4533

Seems to matter only in production: config.cache_classes?