Add more range query semantics for nil start/nil ends

Now following types of range semantics are supported:
{nil, key1}
{key1, nil}
{nil, key1, key3, key3}
Add test for new range query semantics