Memory optimisations, set null support, simplified JSON version checking