fix instanceof for literals