README: added Travis and Coveralls badges
tests/optimizer: workaround for the bug in comparing range objects in Py3.2