Renamed some types and keywords to bring them more in line with JSON/JavaScript:

list -> array
dictionary -> object
"def" -> "function"