Fix support for range dicts

Fixes the test_aperture