Allow graph subjects.
Remove unnamed graphs with {}.
Update writer.