Add spec for nested format with property of same name

Fixes #22