Codegen is_a? for nilable types