Remove deprecation warnings from valueOf

It's deprecated, but JavaScript uses valueOf all over the place, so
there is no way to distinguish usage that should be migrated from usage
that cannot be altered.

Fixes #419 for v0.9