Fixed check HTTP limit restrictions after resolving the virtual dir
Fixed only check restrictions after vdir resolving
Fixed use proper mask

This fixes issue reading MULTIPOLYGONs with very "punched" polygons in
the middle and POLYGONs with very long rings in the middle.