obvious fix for #209. not so obvious to deal with the consequences
fixed const correctness of Vector::const_iterator. closes #209