ligd: Add a min() to match EMGM
uniplate: Fix minInt here as well and add a test