BUG: Fix raising exception on invalid assignment from sequence

Closes gh-4024
Merge pull request #4029 from juliantaylor/from_sequence_fix-1.7

Backport PR #4024 to 1.7