Made all shared_ptr passing as const reference

Only upon storage inside entity member var a (necessary) copy is obtained