codegen: Add target/destroy type declarations for delegates as needed
codegen: Add target/destroy type declarations for delegates as needed

This improves the support of POSIX profile.

GNOME/vala,frida/vala,GNOME/vala,GNOME/vala,frida/vala,frida/vala,frida/vala,GNOME/vala,frida/vala