Fix array access with booleans (fix #290)