add basic autoarray support