New type cast implementation

- added polimorphic attribute types
- added attribute-grain control on change event bubbling