Add support for serialization of Java8 closures (see #215).