Process curve name when loading EC keys. Fixes #1336

Not super happy with `CURVE_TYPES` so if anyone has a better suggestion speak up.
If this was `_nid_to_elliptic_curve` it would match up with `_elliptic_curve_to_nid` better?