Add ConstSharedArray::Contains().
- Implement some missing functions in SharedArray.