We discussed this in IRC. I still don't like using `store` this way, as it is a totally different meaning from what RIG was designed for. Why not something like this instead:
```ruby
rig.init_var(:var_bytearray)
hash_sub = rig.to_h
hash_sub[:shellcode] = Rex::Text.to_csharp(code, 100, rig[:var_bytearray])
return read_replace_script_template("to_mem.aspx.template", hash_sub)
```