more cleanups around the new curves feature.
apply object instance transform to curves, plus some refactorings.