Fix DateTime comparison with DateTime::Infinity object
Test to allow Range including DateTime and DateTime::Infinity

Closes #8587
Merge pull request #8927 from dkubb/issue-8178

Fix DateTime comparison with DateTime::Infinity object