Implement logical indexing for SubArray. Fixes #4763