Allow React.PropTypes.instanceOf with constructors that take parameters.