Bugfix. Check description for details.

Fixed error with incorrect layer and collision layer indexes in
libkarten.py.