Fix scoping issue with arg of method init in Scala model.

Reported by @samuelgruetter.