Fix transformation of typeof() operator for KO test case