formula_to_matrix: Convert a formula-based model to a matrix interface
Description
Wraps a model function that expects formula + data so it can be called
with a plain X (data.frame or matrix) and y (vector).
Factors in X are preserved; special column names are safely backtick-quoted
in the generated formula so they survive the formula parser.