bugfix: various numeric bugfixes

- incorrect function names
  pg_int2_numeric -> pgfn_int2_numeric
  pg_int4_numeric -> pgfn_int4_numeric
- local variable was not initialized
- incorrect local variable initialization
  (isnull and value were reversed)