CSHARP-683: restricted within to be for only polygon types.