With regard to Tolkien dwarves, check out Nibelungenlied.
For his elves, there are the Sidhe.
Goblins, Brownies, Gnomes... they all have their roots in folklore.
In a lot of ways, Tolkien took what was out there and changed it slightly to suit his purpose. But the stereotypes of elves being...