Resized also the number of elements in a table

The nesting.resizeNestedAs() will now resize also the number of elements in a table.
New elements are allocated, if needed. And extra elements are removed, if needed.
This is useful if passing a table with a variable number of tensors to a network.