Update build script from Scala version 2.10.2-SNAPSHOT to 2.10.3-SNAPSHOT
Wrap some more tests in ask calls.
Adapt to new pattern matcher.

The new pattern matcher represents partial functions as instances of
anonymous classes. This trips up our code generation so we replace the
Block with the pattern match.