XQuery optimizer fails on several types of expressions

XQuery optimizer fails to properly analyze: 

* enclosed expressions in attributes
* default clause in switch and typeswitch
* try and catch clause in try/catch
* map constructor

This may lead to a massive performance loss for some complex queries. Added tests for all relevant XQuery expression types to make sure the optimizer analyzes them properly.