Helpers for getClass and identityHashCode