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.