Reference-Return at post-increment

One of my students has found a bug that caused runtime failure for gcc 4.9 and clang 3.5.0 when using the `-O0` debug optimization.
Here is a patch that also changes `children` to a call-by-reference (possible speed-up).