Add better error messages when fetching wrongly typed fields.