[matter] fix function calls wrt dict expansion