make imputer work for factors (replace with mode)

Why is this "fails"? This is the expected behavior, right?