Made all the post types work.
The main post index, the unpublished post index and the single post all now work as they should. There are likely DRYer ways to do it all but functionality comes first.