Fixed bug in PG port: The query would produce multiple copies of the same rows, when indeed it wanted to limit the list by only showing relationship types that weren't already related to a group
Added a couple of package params and bumped up the version # because of\nan added 'external_p' column to cu_elements and the associated upgrade script.