Fixed Utils#toType to handle type constructors and existentials

Also see [https://github.com/aztek/scala-workflow/issues/2#issuecomment-31410830](scala-workflow issue2) for discussion.