Add attribute.field support for sync()

Closes #1996