Attributes improvement:
- added support for {toString:function}
- added more tests