Add better support for arrays and warn on unsupported types