Fixed some issues related to list handling and constructors.