SM-4383 activation-api spec modification to CommandMap leads to invalid registrations and memory leak

add fixes and tests for 1.2.1
6 files changed