Move the QgsExpression::Interval class out to its own QgsInterval class, extend with new methods and add tests Add a typedef to keep API compatibility for 2.16