Enhance error handling about array type configuration

fix #456