Fix bug #1

Would be nice to have optional/noneable keys in dicts. This PR also adds testcases for those cases.