fixes: issue #395 Naming a class "Object" crashes FD

Depends on what you are comparing. Maybe I don't fully understand what this first warning case is about, but it looks like you want to show an error if the class name is Object whatever the package name - right?