Make `String#repeat` throw when called on `undefined` or `null`

Fixes #164. Closes #165.