Fully support logical arrays. Implements issue #3.