Adding set_parameter to scalar type