Allow the use of lineDashArray with the free drawing tool.

Modified BaseBrush and PencilBrush to pass and set context dash array setting.
Closes #1907