fix emit-then-ints for primitive longs