Fixed findbugs bugs and added compareTo() method to AbstractValueObject classes. refs #524