COMP: intermediate changes to get rid of vnl_vector_ref