Fixed a bug when passing data that does not contain contexts.
Wrote tests for i18n, fixed core engine based on some failed tests.