Restructure Color constructor to remove need for Color.create().
Use separate id ranges for different classes.
Add unique ids to CurveLocation.