Added additional serialization flags.

Some fields were being serialized that should not have been.

Also, a Concordia object was being serialized as an object with a single field, "schema", which contained the Concordia definition. Instead, the result should have been simply an object that was the Concordia definition. This has been fixed.