Exponentiotion expression should be right associative

Fixes #1245