Synced table headings with fields in bulk edit.

Template headings in bulk editting now are stored in  _table_headings.
Additionally small bug fix added in move_after(..).