[pg]: bugfix during nested objects generation, now passing a copy of options object instead of own options object