Make sure the size of entities is always a multiple of 8 (fix #358).

The detection of obstacles is faster when using this assumption.