fix mismatched type warning (using uint32_t as an id instead of SpatialIndex::id_type
clean up more unused parameters