Add contexting to DOM.init and related methods.
Add viewType property to ArrayView.
Make ArrayView update its data when the DAO changes.