Hmm... I defaulted back to the original categories.tpl and it worked. I'll mess with it a bit and let you know the success story.
Excellent code, I must admit I did think about assigning a temporary variable like you did, but was too stubborn to implment it. Great work FD! If you ever run for office, let me know.
