fix mistakes in JSON-dumping module
allow for dumping of extra key/values on spectra and the project object