Add generatePattern() function
Add support for fields from objects passed as function parameter
Merge branch 'tame-object-fields' into vb-build