Fix sorting of primary users

Key.prototype.getPrimaryUser didn't return primary user (user with primary user flag set and/or latest signature creation time) correctly.