fix type output in comments for declarations