Revert "Added const_cast to ArrayView constructor. I am not sure about this solution, it will need discussion." This reverts commit d17dbffd.