Added TypeAttribute (for SplineType, but it is very flexible)