variable merging: detect if both vars are really dicts when combining/merging dicts
InventoryScript: better syntax checking for json stream