Fix a bug in determining the type of delete operation for junction points.
Add missing dependency for proper junction point support (when cherry-picking patches).