Cleaning up binding generation: using IDL_GettmpXXXX as much as possible, adding PREAMBLE between result declaration and starting to check arguments.