Handle stub attachments better when sending multipart doc responses

For couchbase/couchbase-lite-ios#283
Rewrite _attachment dicts into valid form when adding doc to db

Make sure we don't end up with weird stuff in one, that could cause
trouble later on.
For couchbase/couchbase-lite-ios#283