fix check_argdims macro