Improve name/pagename query variable mapping
|Reported by:||duck_||Owned by:|
WP_Query performs some mappings from custom query variables to pagename and name for custom post types. This could be improved so that pagename is not used for hierarchical post types when a top-level item has been requested. We could also do some mappings between pagename and name in case the incorrect query variable was used (see #16323).