More robust implementation of `forwardFill`
`range` and `ranges` unit tests