fixed a crash on array types without identifiers (int[] and int[2])
fixed a crash when declaring function prototypes within a function
fixed a silly crash on loose semicolons in global space