infer unit for VariableDevices with numeric variables