[core, layouts] Handle notifyDataSetChanged() properly

Fixes #111