Additional assert() calls. Will need to add usage of NDEBUG flag to turn
off assert() for non-debug builds

git-svn-id: http://svn.osgeo.org/postgis/trunk@11083 b70326c6-7e19-0410-871a-916f4a2858ee
Corrected use of pfree instead of PG_FREE_IF_COPY

git-svn-id: http://svn.osgeo.org/postgis/trunk@11084 b70326c6-7e19-0410-871a-916f4a2858ee