Template .foreach now matches "for" prefix first