Fix error when sorting by Item Type column (since dd477e15b8)
Use ID rather than name on getPrimaryIDForType()

Use creator name for comparison (creatorTypeID does not exist on array-form creators)
Merge pull request #478 from fbennett/fix-csl-export-creators

Fix dropping of creators in CSL JSON export