Set maintainers in create-module-metadata.
Fix some issues in to_json.