Ooops. Other awful bug, this time with boolean arrays. Time
for unit tests.