fix Issue 9781 - -inline will cause backend ICE

- this rewrite created a const elem with type TYvoid
  which caused the backend assert in evalu8
the same applies to elandand
Merge pull request #1874 from dawgfoto/fix9781

fix Issue 9781 - -inline will cause backend ICE