Fix dashstroke reading and animated stroke width and dashoffset
The reading of the stroke dash properties would fail to read correctly
for cases where the dash pattern had an odd number of elements, in
which case the spec says to double the pattern, swapping dashes and
gaps. In particular, this means that if only a single dash is
specified, the default gap should have the same value.
Reading also failed in cases with more than two elements.
In addition, the QML generation would fail to handle it when the
stroke width or dash offset had animated values. This is not so rare
in real world Lottie files.
This commit fixes these issues, depending on the update to the qml
generator in qtdeclarative.
Fixes: QTBUG-147250
Pick-to: 6.12
Change-Id: I1780a4c59e2f06ad009d2a176437cc477168abb9
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>