Ensuring proper imports are generated for mutually dependent snippets if one of them is replaced. Reviewed-by: rfield
Reviewed-by: darcy, ihse