Made DataContractCodec.MaxSize more accurate