Fix parsing logic around resave option

Just noticed a bug involving the ```resave``` option, where if you explicitly specified ```{resave: true, ... }``` the option was set to false.  See the test for an example