Updated to be compatible with the recent AHK v2.0-a049 changes.
Rewrote some parts -> changes mostly taken from Json2.ahk(master branch).