Bugfix: ClassCastException if configuration is provided

scala.util.parsing.JSON.parseRaw() returns an Option[JSONType] - None if it could not decode it or Some(x) if it could. x may also be of another type (like JSONArray), so the code now throws a DecodeException if it wasn't decodeable.