Allow attribute access from inside dynamic block

We are calling `GridClass.new({some_attribute: value})`, and we need access to the value of "some_attribute" in the `dynamic` block.