[BUG #8559] Added white list for data types which are allowed (regarding spec) to send as payload over the wire. All other data types are transformed into a string to be safe. This e.g. fixes an issue for Firefox browsers which are failing to send a request with a object literal as payload.
Merge remote-tracking branch 'upstream/master' into fullscreen-api