Add a convenience template method for using custom containers in boost_foreach.
Add non-generic energy test to ensure energy is behaving as I would expect it to.
Cache the value of cell energy.