Made all shared_ptr passing as const reference

Only upon storage inside entity member var a (necessary) copy is obtained
just to note this here btw: this is issue #305