flux::syntax: added support for stateful import scopes

Signed-off-by: Frank Mertens <frank@cyblogic.de>