clean up trailing whitespace

This mostly removes file trailing and line trailing whitespace from
the files.
remove unneeded dep constraints on test-framework
add mising 'Types' module to 'other-modules' in cabal