Well, I seem to have fixed the problem. It seemed to be a problem with my permalink structure.
It was like this:
/%pagename/%category%/%postname%
And I changed it to this:
/%category%/%postname%
Not sure that I fully understand why that effected the templating… but, hey, whatever works.