Fix type-stability issue in example life_rule.

I was using the life example from the documentation for a benchmark and discovered that method table lookup was being flogged hard, because of ?: operations that mix  Bool and Int.   This PR fixes the issue, knocking off about 25% of the execution time.