Fix Null Feature compareTo.

Null compareTo Null = 0
Null compareTo Anything else = Integer.MIN_VALUE
Add FeatureType checks to the hierarchical graph.