Implementing some of the basic translations for z3.
Some more work for safekeeping. [ci skip]