MAGN-1129
Add equality comparisons on unit types with tests.