various fixes

pg_stat_statements: filter queries with insufficient privileges
pg8000: fix port conversion