Compare doubles against 0.0 instead of 0

This improves generated code on Dart VM.