Improvements for groovy instruction - better performance, stateful context, ability to return multiple events and drop events