Add option to disallow undefined methods on partial mocks

Implements #394