Fix detection of minimal type value.