don't mutate atrributes in templates

some templates were using collect! when collect, or map would suffice.
doing the mutation raises an error on chef-runs in chef11