Fix declaring SliceTypes in support of test0166.
adding .length for Arrays and fixed .length for slices