Fix compact linear types where type is an array.

Add test case for that (3x3x3).