refactor FillStyleArray and LineStyleArray structures