refactor behavior tree virtual machine for decorator.