[cppmyth] Debugging shared allocations for jansson pointer

- Adding use_count()
- Set NULL counter for NULL construction.
[cppmyth] Debugging shared allocations for myth pointer

- Adding use_count()
- Set NULL counter for NULL construction.
[cppmyth] trim white-space