Fixed bug in serializing FieldFile objects