allow index definition and primary key constraint to occur anywhere

in table element list
fixup! allow index definition and primary key constraint to occur anywhere
Merge pull request #629 from crate/m/npe_index_definition

allow index definition and primary key constraint to occur anywhere