Memoize pedantic-print-(ranges|overrides) by stringifying up front.

Fixes #1290.
Add :exclusions to :base deps to avoid version conflict warnings.