Fixed a few metaclass-related bugs, added a new '$exists' operator