refactored setLineDash a bit, added comments, and added a context trace assertion that tests line dash