Issue #975: flipped males/females in the 4-generation template