Added iterator for vector. Fixed warnings in tests.