added missing equals and hash code methods to JRef