Added primitive type unboxing when searching for a method.