Memory performance little improved via slots.

Also added experimental suport of context.
Bugfixes