[tests] add self-reference example
[repository] refactored toArray converter [closes #32] [closes #37] (interface BC break!)
[reflection] fixed error message