Make TransformObject
trait more flexible
#2381
Merged
TransformObject
trait more flexible
#2381