move new typeahed init into common hooks and refactor it alot

multivalue dict still not working

rewritten local-dict copy most part of dictionaries module,
so I think there can be only one