diffcore-pickaxe: simplify has_changes and contains