Ok, was too quick. unsafe_ref_capture => 1 is all there's needed to get the references.
The questions I still have:
1. why not make Devel::StackTrace::WithLexicals behave as Devel::StackTrace by default, i.e. leave stringification off? Probably because you include lexicals and hence many more references. But I don't see how you'd get circular (and hence incollectable) references because of that, as long as you don't do something like my $foo; ... ; $foo= Devel::StackTrace::WithLexicals->new (which might put a reference to $foo inside the object at $foo). As long as you don't mutate $foo after its introduction, you should be safe, I'd say.
2. should this issue here be closed, as Devel-StackTrace-WithLexicals from Github (d0ea35b4fea8599557ca33469762d772e1babb19) works fine on my perl v5.14.2 (on Debian).
Thanks,
Christian.