Towards a working DEX compiler.

Modifications toward a full implementation of the DEX compiler. This
work is incomplete.