Fixed bug in list layout

Fixed bug in list layout, which caused the size of the list to become almost zero when there was only one node in the list. The size of an empty list is now the size of one (empty) node to reduce flickering when adding the first node, and to work better with other data structures on the canvas.