generators: add send to generator class, fix gen-arg test to use this