Multiple name definitions not producing error

Fixes #110.