Updated NamedScope.GetNamedChildren to also return variable declarations.