[#369] moved the initial Shape creation into a `getShape` function from `TMXObject`

This is one smaller step in simplifying entity object, and should also
make it easier when integration with a physic engine (assuming shape
objects are compatible).