webidl: Refactor isSequence in getJSToNativeConversionInfo
That way it does not depend on the return value for the same type. This hopefully makes the code more clear, and avoids errors if something changes in the future (for example, we could want to pass slices as sequence arguments).