add assert in constdef (may remove it later),use asserts to check if
objects are created (TODO: for slateobject),improve rendering (now both
is rendered: background and slates), add locking (especially for
interactions with slateobject, but not for events and inputhandler:
reason: needs separate lock, elsewise hangs)