check for strings as dates and parse them

only if the `options.type` setting is either `'date'` or `Date`
also parse on insert