peltool: Fixed output for SRC parser
peltool: Fixed output for SRC parser

This changes the output of SRC parser when empty JSON object or array is
returned by python module. No "SRC Details" key will be shown.

JSON objects will also be nested under "SRC Details" instead of
appending to the "Primary SRC" key:

    "Hex Word 8":               "00000000",
    "Hex Word 9":               "00000000",
    "SRC Details": {
        "Key": "Value"
    }

Fixed reference counting to avoid possible memory leaks and undefined behaviours.

Signed-off-by: Harisuddin Mohamed Isa <d8aeb45f758103e2ef97301d25493eb8a54a9484@gmail.com>
Change-Id: I4bf5382ee9eac53f38b8e1cf7ead8a9d2dd47f8d

openbmc/phosphor-logging,openbmc/phosphor-logging,openbmc/phosphor-logging,openbmc/phosphor-logging