Add Claims::getByRanks to filter Claims by several given ranks

Needed/ Wanted in https://gerrit.wikimedia.org/r/#/c/117847/1/client/includes/scribunto/WikibaseLuaEntityBindings.php