Added tests for array type declarations. Fixed the issues discovered.