ENH: Started refactoring the CompositeTransform class

Prefer initialization to assignment (i.e. use class constructors rather than resize
variables).

Change-Id: I79a0dd7e3e22d3e5866b13b343c7f14296293606