mesa: test against MaxUniformComponents in check_resources()