Test arrays with a user-defined type.