Fix incorrect forward declaration for record template.