Fixup the rest off the scala examples and add Integration Tests

Some examples do not work due to bugs in the runtime (iterations). For
those tests that don't work we don't yet have an integration test so
that mvn verify will not fail.