One day we'll have to reconsider why some many 'real' ID usages are not refcounting... :( To be backported to 2.78a.