Replaced Function<Object[], Object> with a ScalaMethod type

- Not yet generified for return type
- No nice way to wrap scala return values
- No nice way to create scala input types

+review REVIEW-5246