Add a pathExpression to constantLine

Fixes #805.