Add support for dynamic expressions for dasharrays - closes #2168