Various clean up and get_param_vector / set_param_vector methods