fixed a ClassCastException in FastHierarchy when comparing arrays types to primitive types