Simplify some more things.

Mostly just adding foreach loops. Also converted some BOOLs in DockingSplitter into bool types.