fixed unboxing in find and generic comparisons