only own properties set to class

That's inconsistency brought by nette/reflection though, in plain PHP, it is ===. Also wouldn't be better to compare class names themselves rather than objects?