Detect bytea type in py_param_to_pg_type and convert to right format

psycopg2 requires data to be wrapped in psycopg2.Binary when inserting
data into a bytea field, but plpy can insert the data as a string.