Make `SharedObject.defaultObjectEncoding` setter static

The getter already was, so this is essentially a typo. Fixes the SharedObject trace test.
Move SharedObject test from trace tests to ref tests because it relies on the DOM sessionStorage object.
Merge pull request #1583 from tschneidereit/master

Fix SharedObject reftest