ENH: support inf and Inf in query and eval

closes #7178