fix(odoc): strip inline include decls to reduce memory usage 5.7x
Add an `expanded` flag to includes that marks them as "already derived
by odoc". After compilation, all includes are marked expanded=true,
which prevents redundant re-derivation from the decl in dependent
modules. Inline Signature include decls are stripped to empty signatures
as a size optimization.
For `base.odoc` link, this reduces peak RSS from 25.1GB to 4.4GB (5.7x)
with no change to HTML output.
Imported from /cache/jons-agent/oxmono commits f7711a7e6..47185ae05.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>