Fix small bug with dirty attributes and list assignment as an array.