Make equalites between Numeric and Duration consistent.

i.e.
1.seconds == 1 # true
1 == 1.seconds # true

Currently on master, it is
1.seconds == 1 # true
1 == 1.seconds # false
Intuitively, equality should be keep same if we swap two sides.