Add support for `fromGlobal`; default `paramName`=`globalName`.