Reproduced in CouchDB 2.x and 3.x. Photon blocks saving those kind of ddocs from Mango index editor since v1.10.10 that was released just now. See https://github.com/ermouth/couch-photon/issues/26 for details.
For those who use Photon for creating Mango indices: do update. Andrea, thanks for reporting. ermouth
