lib/erb.rb: add ability to assign local variables with Hash in ERB#result

Feature #8632