Replace static type field with dinamic evaluation

Just to make instantiation simpler
...and fix some issues in MFB FE ;)
Merge pull request #6 from akucherenko/patch-1

Replace static type field with dinamic evaluation