Added a function for splitting continuous number into numbered intervals, matching the behavior of JAGS's dinterval function.