Fix delete_if (reject!) for the STL container wrappers.

Previously they would sometimes seg fault or not work.