Bugfixes to ensure a minimum capacity for lists