GenerateStoreExternalArray: implement missing double to int conversion