Reporting invalid rest parameters when an array is given