Comment #5 on issue 584 by kai.hackemesser: Variable resolution doesn't work properly with variables passed to a library constructor.
http://code.google.com/p/robotframework/issues/detail?id=584
Your example works here, too. I'll try now write now a proof of concept with a Java library without side dependencies..