set lastError for chrome.sockets.*
Use newer syntax for NSArray & NSDictionary