Compute variance associated with a random-effects term (Johnson 2014)

.get_variance_random(terms, x, vals)