Fixes #14

Values for raw properties are not XML, so their types were being dropped during the unmarshaling process. This PR makes sure unmarshalling raw managed objects takes the type into account. I also added some tests to avoid future regressions.