Fixed a bug where arithmetic with a scalar changes the interval of the
result.