Add repeat support for variable wrapping.