Properties menu: Table properties now have remove buttons for each element, instead of for just the last one.

Also refactored some things into AddTableElement.