Implementation and test for matrix params support