Fix tests and compilation.

The tron optimizer now works
ENH: tron high-level wrapper for input checking
WIP