improved equals() and compareTo() (GMAVENPLUS-18)