Slight performance tweaks to Function.scala.

Made function0Instance and function1Instance vals instead of defs, also removing the unnecessary generics from function0Instance.