preserve the ability to supply a toJSON function on an object that is respected when calling ko.toJSON
Merge pull request #1071 from knockout/1071-not-respecting-toJSON

ko.toJS() in 3.0.0beta omit toJSON function from output