Bugfix in tools/bounds [backport]
Merge branch 'develop' of github.com:casadi/casadi into develop