Merge pull request #3959 from yebblies/toElem

Get rid of Expression::toElem forwarding function
Get rid of dt_t from the frontend
Remove all references to IRState from the frontend
Update gluestub