Bugfixes for QReal:Robots 2.5.0

Fixed a number of bugs from https://github.com/qreal/qreal/issues?milestone=31&state=open