Fix Variable[Request] creation

Ensure that the correct type is created and the fields are set. The
conversion from VariableRequest to Variable apparently didn't go too
well.
Improve get functionality

Make it easier to get variables through dynamic VariableRequest creation
from a type name and variable name as well as an array access syntax.