Consider numbers in CaseHelper

Fixes #1268.