Added support for advanced lists (classes inheriting from List).