Adding an optimization point for the types so we can identify literals and handle them as literals avoiding to convert them in each FFI call, just doing it in the compilation of the method.
This makes the marshalling of this constants 3 times faster when converting integers to External addreses and 10% faster when using other literals (as it avoids the conversion messages e.g., asInteger).
Also, when using ExternalAddresses does not create a new object in every marshalling
Fix #17409