add fixes for gso functions in mpf_mat