Moved getColumnsWithCommonKeyType() to ColumnUtils and made it get all
descendant ReferencedColumns.
TableTool and AdvancedTableTool now initialize their columns using this
method.

Change-Id: Id0e77df80766335bbaef1097d9175f9b6d729677