Multiple name definitions not producing error

Fixes #110.
Merge branch 'dev'