Added ToExpando extension method.
Added NearestAncestorOfType.