Allow unit to be changed even when original value was outside range.

When trying to set the unit, it will now jump to the nearest boundary value and thereby come into range. Previously, if a facility was on unit 1, which now doesn't exist, it was impossible to get it into range via the UI.