Fix model instantiating

Some configs return objects as classnames so they should be casted to strings