Make RelMdDistinctRowCount, RelMdSelectivity extensible.
Fix NPE in CachingRelMetadataProvider if arg is null.