BUG: Fix raising exception on invalid assignment from sequence

Closes gh-4024
Merge pull request #4028 from juliantaylor/from_sequence_fix-1.8

Backport PR #4024 to 1.8