Editing utils method toText to stringify objects

Took lead from this todo https://github.com/yyx990803/vue/issues/83