Support transforming scalars as some routines need this.