Nice errors when attempting to serialize an incomplete record or variant