Add support for dynamic types in functions (use Value as argument type)