Before this patch the functions below returns incorrect type for consts,
and hence optimize_skip_unused_shards does not work:
- cutToFirstSignificantSubdomainCustom()
- cutToFirstSignificantSubdomainCustomWithWWW()
- firstSignificantSubdomainCustom()