WIP support for $set{$do} and $set{$ref}