Also handle class templates

References #1.