Rule `new-cap` checks capitalized functions (fixes #904)