Fixes the BIC trainer (addresses #137 after #130)
Fixes LinearMachine C++ tests after exception overhaul