Improved array type handling.