Resolve feature serialization issues.

All feature classes must be serializable, and their data classes as well.  Our use of
scala.Unit for features without a data component was causing problems as scala.Unit isn't
serializable.