Port the dasharray to the value/type scheme

Also make the dasharray behave like the spec