Fix _parse_value always returning 0 when not true, false or None.