Add JSON support for JwsAlg and JweAlg

These will be used by other JSON data types in place of 'Alg' so they
also need ToJSON and FromJSON instances.