Add support for archive slugs in post types, fixes #2112