Added get() method to SharedConstVector and SharedConstMatrix for conversion to SharedVector and SharedMatrix