Properly handle nils on decode.
Add example app.