Another batch of cleanups to modernize the codebase:
Array.includes() where we aren't interested in the index
for..in and similar constructs
Other suggestions1 are welcome.
other than moving to ES6 classes, which will break inheritance in extensions and thus requires some heads-up to extension authors