Integrate direct Closure optimization with sbt plugin

This fixes #949
Add direct optimization support to partest