Remove unused vars and actually test the indexed array member in the bitmap class