workaround inline Issue 7625

- add explicit else branches so that dmd can inline those functions
Merge pull request #2566 from MartinNowak/workaround7625

workaround inline Issue 7625