ENH: Provide better error checking for using ID transform.