#520 
fixes based on FindBugs results

Added hashcode() methods generated by eclipse.