Fixed incompatible type assignment.

In a map containing lists of items, one branch would put a single item into it while the other branch would add a list of items.