VarDefs can now be correctly loaded from json files

Types are restricted to string, float, integer and boolean