[RFC] Partial C99 cleanup of term.c

Since term.c is such a huge file with some large and hairy functions, this is a partial C99 cleanup for ease of review.
According to the [style guide](http://neovim.org/develop/style-guide.xml#Braced_Initializer_Lists), spaces should be added around the braces.