Added debug methods useful for detecting order equality checks.
Introduced additional states for orders.
In order to exit a position whose exit order is active it has to be manually canceled first using cancelExit.