Added support for Either.

Same as https://github.com/json4s/json4s/pull/52 but for scala 2.10.