Add the `createSpy` function.

Alter `Spy#__construct` so that it doesn't require a callable.