Global upsert option not functioning properly

The problem is that the line

`if (definition && options.upsert && attrs[definition.idAttribute]) {`

runs before

`options = DSUtils._(definition, options);`

so the options don't get merged with the global options. This is a suggested fix.
I figured there was a reason you'd left it out. Right now I have a branch that has this fix in it for me that I'm pointing to. Would love to not have to do that :-)