fix bug on plain types
add unit tests
Merge pull request #125 from alberts-tid/task/adapt_attribute_value_puppet

fix bug on plain types