Update Shark for consistency with new Java API.

This brings Shark up to date with Spark commit
181ec50307 (which changes the Java Function class).