3.0 fieldlist

Adds the fieldList option when marshalling entities. Fixes #3831