Bugfixs for variant type and article without headers

- Use `parseInt()` whenever an int calculation is expected
- Pre-process on initial params to ignore the cases where no header with startLevel exists