fix inference's argument checking of arrayset. fixes #7130