Make sure all classnames get classPrefix if passed in config file. Fixes #1053