It's actually always an object, so always permalinks.value. I ummed and aahhed about this, and then figured that for the sake of an OR it prevents silly mistakes. But it does violate the one-way-to-do-things principle. Hmm.