Fix range value extraction to use existential comparison

Fix #605

Signed-off-by: Byron Ruth <b@devel.io>