Fix a critical error in value packing/unpacking in EcalRecHit.

Also tests!