Process curve name when loading EC keys. Fixes #1336

Not super happy with `CURVE_TYPES` so if anyone has a better suggestion speak up.
Should this be `assert nid != self._lib.NID_UNDEF` (or whatever it's called)