Make sure element assignment is handled correctly

After #1486 I figured the same problem could be present in more cops, so I searched for cops that looked at assignment nodes and checked if their specs covered element assignment. Many did, and of those that didn't have coverage only one had the bug.