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