Fixed error in ScalaGenerator.

Corrected `ScalaGenerator` code for `Variable` and `MetaVariable` to
include the new `byName` parameter.