OOP: update presence checking operators and object methods
Update how presence checking operators (i.e. 'ispresent', 'isbound', 'isvalue' and 'ischosen') work on classes, according to standard version 1.3.1. Implement the 'equals' method of the 'object' class.
/cc @aknappqwt