Implement RCTConvertOptionalVecToArray(const folly::Optional<ContainerT> &vec)
Implement RCTConvertOptionalVecToArray(const folly::Optional<ContainerT> &vec)

Summary:
There are two implementations of `RCTConvertVecToArray`. The first implementation:

```
template<typename ContainerT>
NSArray *RCTConvertVecToArray(const ContainerT &vec, id (^convertor)(typename ContainerT::value_type element))
{
  NSMutableArray *array = [NSMutableArray new];
  for (size_t i = 0, size = vec.size(); i < size; ++i) {
    id object = convertor(vec[i]);
    array[i] = object ?: (id)kCFNull;
  }
  return array;
}
```
The purpose of the second implementation is to default the convertor function to the identify function:
```
template<typename ContainerT>
NSArray *RCTConvertVecToArray(const ContainerT &vec)
{
  return RCTConvertVecToArray(vec, ^id(typename ContainerT::value_type element) { return element; });
}
```

Meanwhile, there's only one implementation of `RCTConvertOptionalVecToArray`:

```
template<typename ContainerT>
NSArray *RCTConvertOptionalVecToArray(const folly::Optional<ContainerT> &vec, id (^convertor)(typename ContainerT::value_type element))
{
  return vec.hasValue() ? RCTConvertVecToArray(vec.value(), convertor) : nil;
}
```

In this diff, I overload `RCTConvertOptionalVecToArray` to default the convertor to the identify function.

Changelog:

[iOS][Added] - Added RCTConvertOptionalVecToArray with default converter

Reviewed By: PeteTheHeat

Differential Revision: D18148891

fbshipit-source-id: d7d5f05cda06c9fa5374334ec4e9dbbd8b6d2eba

hammerandchisel/react-native,exponentjs/react-native,pandiaraj44/react-native,hammerandchisel/react-native,exponent/react-native,javache/react-native,janicduplessis/react-native,exponentjs/react-native,javache/react-native,arthuralee/react-native,hammerandchisel/react-native,exponentjs/react-native,pandiaraj44/react-native,janicduplessis/react-native,exponentjs/react-native,exponentjs/react-native,pandiaraj44/react-native,arthuralee/react-native,hoangpham95/react-native,myntra/react-native,myntra/react-native,facebook/react-native,myntra/react-native,myntra/react-native,facebook/react-native,pandiaraj44/react-native,exponent/react-native,javache/react-native,myntra/react-native,javache/react-native,janicduplessis/react-native,facebook/react-native,janicduplessis/react-native,exponentjs/react-native,pandiaraj44/react-native,facebook/react-native,exponent/react-native,hoangpham95/react-native,janicduplessis/react-native,hammerandchisel/react-native,exponent/react-native,pandiaraj44/react-native,janicduplessis/react-native,myntra/react-native,myntra/react-native,exponentjs/react-native,arthuralee/react-native,hoangpham95/react-native,facebook/react-native,javache/react-native,javache/react-native,javache/react-native,hammerandchisel/react-native,exponent/react-native,exponent/react-native,myntra/react-native,hoangpham95/react-native,hammerandchisel/react-native,pandiaraj44/react-native,exponentjs/react-native,arthuralee/react-native,exponent/react-native,hoangpham95/react-native,hammerandchisel/react-native,javache/react-native,hammerandchisel/react-native,facebook/react-native,facebook/react-native,javache/react-native,janicduplessis/react-native,facebook/react-native,myntra/react-native,arthuralee/react-native,hoangpham95/react-native,exponent/react-native,janicduplessis/react-native,pandiaraj44/react-native,hoangpham95/react-native,hoangpham95/react-native,facebook/react-native