Merged from svn/trunk, fixed double copy in StackedTransform constructor