Change use of boost::shared_ptr to use boost::shared_array since the underlying data is an array.