Expose allow_foreign_docs to the caller
Working on v0.8.2