FlxEmitter refactor: improvements and bug fixes