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.
Merge pull request #493 from joshmarcus/topic/feature_serialization

Resolve feature serialization issues.