fix crash when add/edit sub-circuit parameters

Something was going amiss in the change
detection/replacement code.

Instead of working inplace, build a new list,
compare it with the present list, then swap
if different.
Merge branch 'mdavidsaver-master'

This closes #143.