Test & fix for dimension scales issue (#483)

DimensionProxy.items() iterates over dimension scales using H5DSiterate, which is ill-behaved if the number of scales is 0.