Added support for .data(Object), overwriting the existing data object. Fixes #4284.