added generic 'inspect' predicate that reads property-value pairs for both classes and instances