refactor create table statement analyzer

in order to

 * share code between create table and alter table add column
 * avoid empty lists in the mapping which break merging of the mappings