Add support for EncodedAttribute in high-level API device
Closes #534 (closed)
set_complex_value function was fixes and tests for EncodedAttribute added
To solve memory issue I implemented the @t-b suggestion and re-wrote set_value in a way, that we make a copy of data and use set_value with release parameter
Edited by Yury Matveyev