fixed bug with handling of array types
fixed a bug scanning array types