generalize mocked parameter types
implement Pointer and make mock use it