core & arch_*: handle multiple architecture per document, database now has to handle arch tag ; ui_qt: use done method for dialogs