Improved nested object creation

Now takes any fields from the category object
Merge branch 'categories_processcats'