fixed "warning: integer constant not in range of enumerated type 'mitype_t' [-Wassign-enum]"

Indeed the mitype_t enum has no 0 value.  I'm guessing MI_TYPE_UNKNOWN (-1) is better, but not sure.