Support variable types in params and handlers