Fix incorrect rendering of forward declarations.
Add forward declartion generation for composites/records.