Check constructor name conflicts

Closes #973