Fixes issue 237. The problem was the merging of hashmaps with formulas as keys, instead of formula occurrences.

git-svn-id: http://gapt.googlecode.com/svn/trunk/source@1532 85d21ef8-add0-11de-ae77-5bfb9c5a3f34