Update foundation.cs

NSError should be an out parameter on Deserialize (NSData variant)