Allow downloads shortcode to take both ID and slug for cats and tags

Fixes issue #1922