[Issue #209] Compute the pair end-delimiter closure before restricting the pairs (important for e.g. ruby)