In `wp_list_pages()`, add the `current_page_item` class where applicable when used with a custom post type.

Adds a unit test.

Props nacin.
Fixes #17590.



git-svn-id: https://develop.svn.wordpress.org/trunk@27755 602fd350-edb4-49c9-b593-d223f7449a82