Expand shell functions in map expressions

Reported-by: Danil Zagoskin