Fix an issue with nested lists being spliced instead of inserted