Filter, global_param: Change list to dict of global_param. Add add_global_params.
Param: Implement global_param to cpp filter (only int)
Param: Improve template to new global_param.