Fixes for version 0.2.0

Rename instance method Write; fix writing arrays and maps and add tests
for them; change meaning of AsBoolean