title: Solidity delegatecall fails with "function selector was not recognized" when using enum
body: <p>I have the following function</p>
  <pre><code>   enum OptionType {Invalid, Put, Call}
  
     function create(
      uint256 period,
      uint256 amount,
      uint256 strike,
      OptionType optionType
  ) {
      ....
  }
  </code></pre>
  <p>When I try to delegatecall this function from another contract using this</p>
  <pre><code>address(contractAddress).delegatecall(abi.encodeWithSignature(&quot;create(uint256,uint256,uint256,uint8)&quot;,1,1,1,1));
  </code></pre>
  <p>I get the error</p>
  <p><strong>function selector was not recognized and there's no fallback function</strong></p>