js-backend: refactor code for reflection types in FunCallCases