If there was a genetic link I would think people who hated it when first released (me) and now don't find the onions and garlic to be present would still perceive those characteristics at some level.
Much of tasting is memory. If someone gave you a fruit you had never had before you would say it tastes similar to something else. It could be those who did not find garlic and onions had a different taste memory.