Core: Use integers instead of doubles for Assertions, close #2357