make mlaga97.util.checkType actually check the type