fix for #396
Determine a canonical sender for each command and generate properties for senders only once.
Merge pull request #399 from Particular/issue-396-invalid-sender-for-multiple-commands

fix for #396 and #401