The type "voltage_range" doesn't need to be a defined type, since it's just an array, as far as I know. Why don't use just use an array?