Change dimension querying interface

The one with square brackets would make it hard to delegate dimension
requests.