DOCS-3169: Improve $type documentation, factor out BSON type list.