Convert all of the checkbox loops to use ARRAY_SIZE instead of magic numbers.