Added simple comparable function to test whether two numerical values have the same units.