Fixed bug in array slicing when using step > 1

This is a bug found by Christian Giovanelli when slicing a variable with
`[0:61:2]`. Since the division is not exact the algorithm was rounding
down the division, when it should actually round up.