fix data type() issue
- fix data type of QGraphicsItem: set it in a common place instead in every class which leads to errors
- count also analysis curves, because the AspectType is not part of XYCurve: So when adding a new Analysis Curve it gets a new color, previously it got always the same color as the previous curve/analysiscurve
- handle also the reference line