Add window functions to distribution test.
Fix xsd namespace.
Add having AVG code generation test.
Find all possible variable types.
Store min,max,sum,avg values in corresponding node.
Little bug fixes and clean up.