ArrayLookupNode::getRoot()

This method will return the root of an array lookup. So given an expression like $field['und'][0]['value'], getRoot() will return a VariableNode for $field. Tests included.