Added function Obj.areEqual() to check whether two variables are equal