Major overhaul of transform handling. Now using sb-cga. Will fix exports later.