remove export of unsafe view types
Export view function from ArrayViews
add requirement of ArrayViews
use view in the place of unsafe_view