objectClassName checking (fixes #28)