Secondly, it doesn't take a spiritual belief to be dogmatic. Look at politics, or baseball fans, or some vegans. People generally are dogmatic over their belief systems, whatever they're composed of, religion or not. I imagine that evil stems from the intensity and nature of the belief systems, but also the person and the circumstances.
Finally, people are taught to both love and hate at a VERY early age, regardless of the influence of religion. Society does a fine job of this, my 1 1/2 year old is just as capable of being a kind and loving son as he is being selfish and mean. Now perhaps you mean more developmentally, but every human is just as capable of love as they are of hate, I would say regardless of religion. Some religions may encourage one or the other more than others, just as some teachers do in the classrooms or in certain subject areas. I imagine what you're referring to are the studies that showed that racism is taught (and it is), but racism is not a necessary component of evil. Selfishness or greed can be just as effective as a root cause of evil as racism. How much evil has been done in the name of money, separated from beliefs?
Religion is just the scapegoat in your argument, when the things you're stating are more general to human nature.