modified readonly field serialization exception to be more specified about type.