Cleanup `isNumber`.
Remove `objectTypes` and `indexTypes` deps.