BUG: Bug in casting when setting a column in a same-dtype block (GH7704)

closes #7704