BUG: fix setting dataframe column to a sparse array

This should fix #8131.