Use Range#cover? for Numeric ranges (tests via endpoints) and use Range#include? for non-numeric ranges

added changelog message
Merge pull request #10774 from chuckbergeron/validates-inclusion-of-accuracy-for-non-numeric-ranges

Greater accuracy for validates_inclusion_of on non-numeric ranges

Closes #10774, fixes #10593