[PATCH 2/6] programs/cmd: Introduce helpers to handle FOR variables.