fix Issue 12523 - wrong type deduced for foreach ref argument

- No need to change the storage class because the var type
  already has inferred modifiers.

[Issue 12523 – wrong foreach argument type with ref and inout](https://d.puremagic.com/issues/show_bug.cgi?id=12523)