Improve Document::read() support for shared formula