Flat functions should not be in the "vector.py" file, since they also apply to discrete 0-forms (for example), not only to discrete vector/tensor fields. In general, the interface for the flats should be improved and all the cochain functions should be extended and tested on vector/tensor-valued cochains.