Also catch SPI exceptions from plpy.prepare
Support additional types as query parameters