[entity] add a new `cw_linkable_rql` method
* the new method returns the entities that are or may be related to the
current one by the relation passed as an argument.
Closes #3738011.
rql('SET X name "BoundaryConstraint" ''WHERE X is CWConstraintType, X name "BoundConstraint"')