Do not allow duplicate scripted fields to be added

Closes #2158