Bind instance and class methods properly.
Test that different types of partial doubles are restored.