add matching on concrete lists in java backend

@yilongli please review