[PATCH 4/4] virerror: Make virReportEnumRangeError() check for type mismatch