Added functionality to extend the fields array, to a fields object, similar to the type declaration. This makes it possible rename properies when you get them.