semantic: Move variable assigns on nested variables to their own assign statement.