Fix a bug when removing a dimension from dimensions set

The value of the dimension was set to undefined but the key still existed.
Replaced with a "delete" call.