Extract index chain resolving function

grn_obj_search_accessor() ->
grn_obj_search_accessor() +
grn_accessor_resolve()

grn_accessor_resolve() will be used sub_filter().