I don't know why the order in TargetEntry is wrong and how to fix it via vapi-metadata.
Ok, this problem is already solved:
2008-10-28 Jürg Billeter <j bitron ch>
* vala/valainterfacewriter.vala:
Don't sort struct fields in vapi files to fix struct
initialization, patch by Hans Vercammen