Before this patch, assigning anything other than a list would lead to a crash. Fixes issue #2886.
Slice value to assign can be only a list so far too.