Fixed a bug in the access method rewrite rule. Added common subexpression elimination rule to normalization rule collection. Changed expected plans of optimizer tests accordingly (some plans were improved, most had variable numbers changed).

git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_inline_vars@795 eaa15691-b419-025a-1212-ee371bd00084
30 files changed