Added ability to walk inheritance tree, and fixed an issue with identifying IEnumerable<> types.