Test for ref in array type