Rename UnitsException to UnitsError

As discussed in #991 and #807.