function complexVectorToReadableJson(vector) {
    return seq(vector).map(e => {return {r: Complex.realPartOf(e), i: Complex.imagPartOf(e)}; }).toArray();
}
Encodes a complex vector into JSON that could easily be read by humans or processed by external programs.
@param {!Iterable.<!Complex>} vector
@returns {*}