Fix a couple of ID mismatches in CSL JSON export method

Use ID rather than name on getPrimaryIDForType()
Use creator name for comparison (creatorTypeID does not exist on array-form creators)