Added View.lookup function; replace View root property with root function and rootStr property.

The previous implementation did not work for roots that were properties of models, as
opposed to the models themselves.