Reorganize OpaqueKey methods by function
Make _to_string/_from_string and _to_deprecated_string/_from_deprecated_string parallel constructions