Thanks for the bug report. My autotester hit that same bug last night. I think a quick workaround is to pass (copy ARGS) to map -- this seems like an obvious optimizer bug -- I'll poke at it later today.