Fixed deserialising and transforming of dictionary attributes