Fix a crash in amplodbc
Test minimization and maximization
Handle objective type in jacop