Fix the block maps for data ranges

The existing code uses the underlying data blocks as keys, and the
origin blocks as values, which is backwards. This is done correctly
above for the single mapping case, so this bug only affects range
mappings.