fixed region comparison in operators (was with pointers, not correctly with objects)
minor change to a printout in case of error