tools: fix type sniffing for properties in JSON generation
Before:
{
"textRaw": "`children` {Array} ",
"name": "children",
"desc": "<p>The module objects required by this one.\n\n</p>\n"
},
(https://nodejs.org/api/modules.json)
After:
{
"textRaw": "`children` {Array} ",
"type": "Array",
"name": "children",
"desc": "<p>The module objects required by this one.\n\n</p>\n"
},