Throw an error when functions on `statics` clash due to duplicate keys

Fixes #1947.

I agree with @spicyj and find this behavior confusing, so I thought I'd send in a pull request. (This is my first PR for React--did my best to follow the contributing guidelines!)