Fix compiler warnings and various cosmetic fixes

* MAPPER instance in DXObject can be used by all subclasses
* Declare methods as static where possible
* Eliminate unneeded nesting
* Don't assign to parameters
* Remove unneeded "throws" declarations
Run tests that rely on newly released features.