Fix how asynccollectionhandler get generic type.