Total version of [a..b] and [a,b..c]

Fixes #328.