Implemented more has/getAttribute improvements.
several functions in system/container.cpp and system/damage.cpp should run more efficiently.