only own properties set to class

Maybe I should use the same approach as the rest of the file does (which is `==`) and separate the name comparison into another pull request...