Small fixes to Scala examples

This mostly fixes small style issues, but there was also one mistranslated bit, so I've decided to make a pull request.