fix a bug in get_var_at_level()

a my() @list or %hash variable (not a ref to list or hash) would
cause get_var_at_level to die when returning because the thing
it tried to dereference couldn't be dereferenced by ${...}