gir: Split type and array parsing
The _parse_ctype() method is getting way too big and full of side effects, so let's try and reduce its cyclomatic complexity.
The _parse_ctype() method is getting way too big and full of side effects, so let's try and reduce its cyclomatic complexity.