Implement an `operator==` (and Python equivalent) that compares `UnitDimension` with proper epsilon handling for readers.