fix Issue 11418 - bit test pattern not inlined

- Workaround inlining Issue 10985 by templatizing
  performance critical core.bitop functions.