throw error when setState's arguments are bad
better error message for mergeHelpers and setState
Merge pull request #822 from chenglou/setstate

better error for bad setState arguments and mergeHelpers