[graphite] port monotonic_incr from 0.9.12-tlys as parent to 0.9.x

Adding monotonicIncrease() as a function.