flux_fun_check function

checking that arguments and columns are in the correct class