Convert most of parse to Applicative style
Fix testsuite compile errors