fixed crash on trailing commas within arrays, fixed bad dealing with const keyword midpointer