Ensure that variable attributes are copied with the variables.