Added unit tests and fixed rounding problem in ArrayUtils.range().