[lua-converter] Was not checking primitive types consistency