support inserting into bool[]

Wasn't sure where to put the test, sorry.