Save genes in JSON and mat files, and options for JSON export.

Gene attributes, including descriptive names, were being lost in serialization. This fixes serialization for JSON and mat.

However, this commit is still not passing unit tests for SBML io. Is it possible to store gene attributes in SBML? Seems like a feature with some general appeal.

Also, two options were added for safer JSON export.