Added Rect#equals() to ease unit tests.
Changed Rect#merge() to return 'this' for enabling object chainning.
Fixed bugs revealed by the unit tests.
Merge pull request #2 from kuu/master

Fixed bugs revealed in the unit test.