Allow overwriting of nested attributes

(Fixes #5)