Crude implementation of recursive repace-var support