Fix a few erros. Add an array type
Fix PR