fix warnings on T[] arguments