Core: Add additional assert inRange for testing number ranges

I thought this could be useful.