Improved the system for defining expression primitives; now only require additions to one file.
Simplified typing system.