support nested attributes in extended records (fixes #17)