Debug errors were not shown anywhere in the GUI, they were just ignored. This commit adds new signal for those debug errors and directs them to checking log. Solves ticket #1898 (GUI: Handle internal errors from lib)
Need to register integer list as new metatype so that Qt's type system knows how to use it. Adding also additional constructors for the ErrorItem.