Add "stg id" support for "{public}" ref