Deal with certain tiedscalars (e.g. created by Readonly::XS).
Resolves https://rt.cpan.org/Ticket/Display.html?id=92540