Follow up on regressions introduced by initial fix for redmine 6553

Missing an `rp->rval.type == RVAL_TYPE_SCALAR` check.  I take it that's expected to be true for all entries in value's list.