Improved automatic presetVars creation field types

I made this change on [master] and then found that the commit [c8326f31ffbf42922ef88b188eb0aa93e8e1e1ad] already implemented this changeset on [develop].

I was about to blow away my version, but I thought it was slightly simpler/cleaner, so I'm submitting the pull request anyway.... (no biggie)