Added support for Transform literals (used code from Scene.js)