fixed problems with serializing scalar and vector fields that were using numpy array as a backend storage