tiny fixes for emitter

- fix return value of emit_callee()
- more check
- add comments for TODO