std.algorithm.remove: Fix constraints and change popBack loop to popBackN