pe::Entity: Make getSprite() return a const reference

The sprite is owned by the Entity, it shouldn't be modified externally
Merge branch 'master' into c++11
Use range-based for loops instead of iterators

Iterators are messy and long to write