title: name.replace is not a function in mat table with dynamic columns
body: <p>I need to use a mat table with dynamic columns, but I get this error:</p>
  
  <pre><code>&gt; ERROR TypeError: name.replace is not a function
  &gt;     at MatColumnDef.set name [as name] (table.js:175)
  &gt;     at updateProp (core.js:32189)
  &gt;     at checkAndUpdateDirectiveInline (core.js:31867)
  &gt;     at checkAndUpdateNodeInline (core.js:44367)
  &gt;     at checkAndUpdateNode (core.js:44306)
  &gt;     at debugCheckAndUpdateNode (core.js:45328)
  &gt;     at debugCheckDirectivesFn (core.js:45271)
  &gt;     at Object.eval [as updateDirectives] (TableComponent.html:3)
  &gt;     at Object.debugUpdateDirectives [as updateDirectives] (core.js:45259)
  &gt;     at checkAndUpdateView (core.js:44271)
  </code></pre>
  
  <p>In my ts I've declared:</p>
  
  <pre><code>tableConfigurations = {
      dataSource: [],
        columns: [{
          name: 'first'
        },
        {
          name: 'second'
        },
        {
          name: 'third'
        },
        {
          name: 'fourth'
        },
        {
          name: 'fifth'
        }]
    }
  </code></pre>
  
  <p>and in html I have:</p>
  
  <pre><code>&lt;table mat-table [dataSource]="tableConfigurations.dataSource" class="mat-elevation-z8"&gt;
    &lt;ng-container [matColumnDef]="column" *ngFor="let column of tableConfigurations.columns"&gt;
  
      &lt;ng-container&gt;
        &lt;th mat-header-cell *matHeaderCellDef&gt; {{column.name}} &lt;/th&gt;
        &lt;td mat-cell *matCellDef="let element"&gt; {{element[column]}} &lt;/td&gt;
      &lt;/ng-container&gt;
    &lt;/ng-container&gt;
  
    &lt;tr mat-header-row *matHeaderRowDef="tableConfigurations.columns"&gt;&lt;/tr&gt;
    &lt;tr mat-row *matRowDef="let row; columns: tableConfigurations.columns;"&gt;&lt;/tr&gt;
  
  &lt;/table&gt;
  </code></pre>
  
  <p><a href="https://stackblitz.com/edit/angular-bp1pbh" rel="nofollow noreferrer">This is the stackblitz</a> with the current code I have. As you can see in the console, there is the same error. I don't get what I'm missing. </p>