Add support for case class function params