Added JSONValue typealias, renamed JSONDictionary type to JSONObject type, cleaned up code