updated and cleaned-up the `getEntityBy*` functions

* moved `getEntityByProp` to the `EntityContainer` object (see #59)
* refactorized `getEntityByGUID` and `getEntityByName` to rely on the
`getEntityByProp` function
* also fixed the `typeof` check in `EntityContainer`