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