Fix emit events on 'window' and 'document' objects
add tests to dispatch events on 'window' and 'document' inside iframe
Fix star mapping, aliasing, and pathing for built layers.

Fixes #17475
Make SimpleQueryEngine sort Dates correctly

Fixes #17068.
Only set idProperty if identifier provided, fixes #17557
Merge branch 'fix-window-emit-event' of git://github.com/eduardo-matos/dojo