Fix repeatable field bug. Fixes #557.