Some template classes for representing/computing with Lie groups