Add helper functions for determining the transfer info of variables.