pull request for #3673 (span_near query should accept slop = -1 (bis))

master branch