Fix bug, only check ter_t::transforms_into when it's needed.