Replace bool with boolean (for TypeScript 0.9.0+)

Looks like my editor removed trailing whitespace and possibly also normalized some line endings as well.
Merge pull request #730 from derekcicerone/patch-3

Replace bool with boolean (for TypeScript 0.9.0+)