Added compile_to method that with single .compile() can produce multiple target files.

This is my take on issues/568.
What do you think?
Done. One thing I noted is that there is 'int outputs()' function on Func (number of outputs for the func). Hopefully it won't be confusing.