Fix [temporary?] for casting datatypes out of tables into models
Added join aliases to model so they can be used to resolve the original class name