buffer: Add support for 'extid'
Will be used by the extid migration script, and loaders can probably use it too.