Fixed some high-prio warnings, courtesy of findbugs. One missing hashcode implementation, one incorrect equals implementation for paths and one confusing loop.