Fixed inconsistency between __getitem__ and __setitem__ in bitlist