SEMINAR: Probing the small-scale structure in strongly lensed systems via transdimensional inference