generate methods for embedded fields at runtime (fixes #19)