Fix corner case when colliding a corner of a tile

- Fix component ordering
- Change phase for sprite and input components
Merge branch 'hotfix/0.5.1'