Support for using path length in Pens; PathGradient pen; refactoring; GradientPen performance improvement.