Change scapa and rcapa to size_t, use scapa.