optsizechooser: fixed casting bug
gp_model: little bug fixes
abstract_test: made gradient test more robust, fixed imports
gp_test: fixed imports