Merge pull request #1 from kuu/master

Changes needed to implement Shape's bounds check.
Added Rect#equals() to ease unit tests.
Changed Rect#merge() to return 'this' for enabling object chainning.
Fixed bugs revealed by the unit tests.