New research proves that the things we find funny often reveal somewhat hidden beliefs we hold. Christie Nicholson reports