Test explaining reason to change Utils.safelyCastParamsToArray method