Fixed bug in HessianType in Aggregated. Added test.