stacktool wasn't applying the restrictions specified on the command-line when inserting warps into stackInputSkyfile. Needed to split share/stacktool_definebyquery_insert_random.sql into two parts to make it work with the restrictions.