Migrate PPLibraryObject to Swift.
Minor fiddly bits.