Scene: fix passing of entity lists by const copy. While at it some other micro-optimizations + cleanup.