Updates for ES6 compatibility

A number of tests need to be updated to conform to the current ES6 specification draft. I've created several commits, so it should be easier to compare the required changes. IIRC it has yet to be decided how to handle backward incompatible changes, so I don't expect this PR merged in the near future, instead it should give you an overview on what needs to be updated.