Replaced depreciated bool with boolean

Tsc was complaining a bit about the use of bool, boolean seems to make it happy. A rather large number of edits, but they're all automatic, so I'm not 100% sure nothing has been broken (but it would be pretty unlikely)