rework primitives' emulation engine, fix minor issues

- match against whole symbols when emulating primitives' methods
- fix primitives' methods test which was useless as constant expressions were evaluated by compiler
- reformat code to conform scala style