vala: better detect standard array length type
Reasoning: my WIP generator of OpenGL bindings has a type gl.int
. This results in all array lengths resolving as global::int
and being explicitly written out, making already somewhat hard-to-read file even worse.
This moves check for length type being standard or not into a separate function and adds support for to_qualified_string
returning global::int
in addition to int
.