Remove trailing whitespace.
Replace typedef with alias.
Fix stray parentheses in ddoc.