Fix gem spec.
Missed a method rename on refactor.
Spec for Metadata#write.
Output impl for library files.
More tests for Library#write.