Rule no redeclare (Closes #277)

Closes #277