fixed php typemaps to handle NULL values