fix(output): support write undefined property

Closes #11