I don't see why this is needed. If the parent filter (below) matches, then references must be greater than zero length. I can't see a need for any of these length filters. They might be a good addition, but they could be a separate PR. It's a lot of diff if it's not needed.