Implemented equality and inequality operators for BaseDimension

I added implementations of `__eq__()` and `__ne__()` methods to `simtk.unit.basedimension.BaseDimension` class, so that serialized unit objects are not erroneously considered incompatible with their own units.