Fix type checks in IPython.parallel