remove internally used properties before server render

(also adds a test for spilling the internal properties to the DOM)