Moved some general code to the type assistant
Added code for issuing warnings when the model uses names that potentially conflict with code generated temporary variables