[base] RegExp: adds relational operator support for object pattern matching