Allow measure() to take an array of bit indexes. This is a partial fix for issue #5