Fixed dmd crashes with gi0, gi1. Fixed my long <-> int porting fail.