Reformat sources

Reformat source code using 'sbt scalariform-format' and tests using
'sbt test:scalariform-format'.