[WindowsBase]: 6 fixes to Dispatcher

The implementation of Dispatcher is incomplete and barely tested. This series of patches fixes 6 most glaring bugs in the implementation and adds a test case for each bug.