Fix various issues when manipulating values allocated by json-parser