Add 'allowUndeclaredParams' option for methods

closed #94