[parameters] fix handling of "provides" argument in build_parameter_type