Fix Array property duplication bug

Properties set on a server were added twice. For replaceable or mergable
properties this had no side effects, but for Arrays it doubled them.

Fix the bug and add tests to stop it happening again