fix bug in prototype method assignment
built-in "emitter" trait
ad-hoc tests