fix logical indexing with a boolean sym

Fixes #131.