fixes #1520; versioning is disabled for unsafe writes

Automatically disables versioning for unsafe writes (ie. { safe: false } at
the schema level)