added indexing support for []byte and bool