variantArrayToParams() and minor log fixing