Conversion to bools in determine_model_type() and a fix for bug #12408 (https://gna.org/bugs/?12408).
All internal flags in the method have been converted to Booleans. This commit also contains a bit
of a fix for bug #12408. The bug was a false alarm and now determine_model_type() raises a more
relevant RelaxError.